package org.atovio.coolexam.service;

import org.atovio.coolexam.entity.ExamPaperAnswer;

import java.util.List;
import java.util.Map;

public interface ExamPaperAnswerService {

    /**
     * 根据条件查询记录条数
     *
     * @param criteria 条件
     * @return 记录条数
     */
    int getCount(Map<String, Object> criteria);

    List<ExamPaperAnswer> getByStatus(Integer status);

    List<ExamPaperAnswer> getBySelective(Map<String, Object> criteria);

    ExamPaperAnswer modifyStatusById(Integer id, Integer status);

    ExamPaperAnswer modifyUserScoreById(Integer id, Integer userScore);

    ExamPaperAnswer getById(Integer id);

    ExamPaperAnswer add(ExamPaperAnswer examPaperAnswer);
}
